package com.yuw.bean;

public class Teacher {
    // 属性
    private String teaName;
    private int teaAge;

    public Teacher(String teaName, int teaAge) {
        this.teaName = teaName;
        this.teaAge = teaAge;
    }

    public Teacher() {
    }

    // 行为

    public void doTeaching(){
        System.out.println(this.teaName+" is teaching...");
    }

    public String getTeaName() {
        return teaName;
    }

    public void setTeaName(String teaName) {
        this.teaName = teaName;
    }

    public int getTeaAge() {
        return teaAge;
    }

    public void setTeaAge(int teaAge) {
        this.teaAge = teaAge;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "teaName='" + teaName + '\'' +
                ", teaAge=" + teaAge +
                '}';
    }
}
